package cn.ulyer.core.modules.system.service;

import cn.ulyer.common.jpa.entity.User;
import cn.ulyer.common.jpa.service.BaseService;

import java.util.List;
import java.util.Map;

public interface UserService extends BaseService<User,Long> {


    Long createUserWithGroups(User tUser, List<Integer> groups);

    /**
     * responseKey :  roles:integer[] groups:integer[]
     * @param id
     * @return
     */
    Map<String, Object> findRolesAndGroupsByUid(Long id);

    void updateGroupRoleByLoginUser(Long uid, List<Integer> roles, List<Integer> groups);
}
